/**
 * Created by WebStorm.
 * User: 6922043@qq.com
 * NickName: bluemeng
 * Date: 2019/6/12 0012 8:40
 */
var common = require('../../common.js');
var config = common.config();
var vm = null;
const app = getApp();
Page({
    data: {
        // 组件所需的参数
      nvabarData: {
        showCapsule: 1, //是否显示左上角图标   1表示显示    0表示不显示
        title: '我的主页', //导航栏 中间的标题
      },
      PageCur: 'basics',
      // 此页面 页面内容距最顶部的距离
      height: app.globalData.height * 2 + 20 , 
      list: []
    },
    NavChange(e) {
        console.log(e);
        this.setData({
          PageCur: e.currentTarget.dataset.cur
        })
      },
    init: function () {

    },
    onLoad: function (ret) {
        vm = this;
        wx.showToast({title: '加载中', icon: 'loading', duration: 10000});
        setTimeout(function () {
            wx.hideToast()
        }, 1000);
        console.log(this.data.height)
    },
    onPullDownRefresh: function () {
        setTimeout(function () {
            wx.stopPullDownRefresh();
        }, 500)
    },
    getPhoneNumber(e) {
        console.log(e.detail.errMsg);
        console.log(e.detail.iv);
        console.log(e.detail.encryptedData);
    },
    openWin: function (e) {
        wx.navigateTo({
            url: e.currentTarget.dataset.url,
        })
    },
    onReachBottom: function () {
    },
    onShareAppMessage: function () {

    }
});


